#include "Rational.h"
#include <stdlib.h>
#include <iostream>
using namespace Fractions;

int main()
{
	try{
		Rational r;
		Rational r1(0, 2);
		
		std::cin >> r;
		std::cout << r1 << '\t' << r << std::endl; 
		system("pause");
		return 0;
	}
	catch (std::exception& e)
	{
		std::cerr << e.what() << '\n';
		system("pause");
		return 1;
	}
	
	catch (...)
	{
		std::cerr << "unknown exception" << '\n';
		system("pause");
		
		return 2;
	}
}